package com.car.dal.dao.invoice;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgInvoice;
import com.car.dal.object.TgMoney;
import com.car.util.Page;

public class TgInvoiceDaoImpl extends IbatisCommonDao<TgInvoice, Long> implements TgInvoiceDao {

	@Override
	public Integer getTgInvoiceCountByType(TgInvoice invoice) {
		return this.queryForInteger("getTgInvoiceCountByType", invoice);
	}

	@Override
	public List<TgInvoice> getInvoiceByType(TgInvoice invoice, Page page) {
		invoice.setFirstrownum(page.getFirstrownum());
		invoice.setPagesize(page.getPagesize());
		List<TgInvoice> list=this.queryForEntityList(TgInvoice.class,"getInvoiceByType", invoice);
		return list;
	}
	
}
